package com.dxy.server;


import com.dxy.server.utils.PropertiesUtil;

/**
 * @Description socket服务器
 * <p>
 * 两种打包方式：
 * <p>
 * 方式一：
 * https://blog.csdn.net/qq_33697094/article/details/128034083
 * 按此方法，打成jar包，运行命令：java -cp xxx.jar com.dxy.socket.Run "aaa" "bbb"
 * <p>
 * 方式二：
 * https://blog.csdn.net/qq_37140416/article/details/107977634
 * 使用maven-assembly-plugin插件，指定启动类打包
 * 打成jar包，运行命令：java -jar xxx.jar "aaa" "bbb"
 * @Author dangxianyue
 * @Date 2023/3/18 23:11
 */
public class Main {

    public static void main(String[] args) {
        int port = Integer.parseInt(PropertiesUtil.getProperty("server.port","8080"));
        MySocketServer mySocketServer = new MySocketServer(port);
        mySocketServer.start();
    }
}
